package com.laf.manage.controller.user;

import com.laf.common.core.controller.BaseController;
import com.laf.common.core.domain.R;
import com.laf.manage.domain.po.Tag;
import com.laf.manage.service.ITagService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 标签Controller
 *
 * @author zian
 * @date 2024-11-09
 */
@Slf4j
@Api(tags = "标签管理")
@RestController("userTagController")
@RequestMapping("/user/tags")
@RequiredArgsConstructor
public class TagController extends BaseController {
    private final ITagService tagService;

    /**
     * 查询标签列表
     */
    @ApiOperation("查询标签列表")
    @GetMapping("/list")
    public R<List<Tag>> list() {
        List<Tag> list = tagService.list();
        return R.ok(list);
    }


}
